package com.gc.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.gc.server.dao.LevelDao;
import com.gc.server.entity.LevelEntity;
import com.gc.server.service.LevelService;
import com.yf.service.impl.BaseServiceImpl;

/**
 * 级别Service实现类
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Mar 10 11:17:45 CST 2020
 */
@Service
public class LevelServiceImpl extends BaseServiceImpl<LevelEntity> implements LevelService {

    private LevelDao levelDao;


    @Autowired
    public void setDao(LevelDao levelDao) {
        this.levelDao = levelDao;
        super.setBaseDao(levelDao);
    }


    /**
     *
     *   @Override
     *     public List<UserVo> queryListVo(UserVo userVo) {
     *         return userDao.queryListVo(userVo);
     *     }
     *
     *     @Override
     *     public UserVo getVo(Long id) {
     *         return userDao.getVo(id);
     *     }

     @Override
     List<LevelVo> queryListVo(LevelVo levelVo){
            return levelDao.queryListVo(levelVo);
     }

     @Override
     LevelVo getVo(Long id){
                return levelDao.getVo(id);
    }

     **/


    /**内部方法**/


    /**外部方法实现**/

    @Override
    public LevelEntity findByUserId(Long userId) {
        return levelDao.findByUserId(userId);
    }

    @Override
    public List<LevelEntity> findByType(Integer type) {
        return levelDao.findByType(type);
    }
}
